//
//  YPostWordViewController.m
//  Y百思不得姐
//
//  Created by wyw on 16/7/4.
//  Copyright © 2016年 qw. All rights reserved.
//

#import "YPostWordViewController.h"

@interface YPostWordViewController ()

@end

@implementation YPostWordViewController

- (void)viewDidLoad {
    
    self.view.backgroundColor = [UIColor redColor];
    
    self.title = @"发表文字";
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"取消" style:UIBarButtonItemStyleDone target:self action:@selector(cancel)];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"发表" style:UIBarButtonItemStyleDone target:self action:@selector(post)];
    
    // 关闭发表按钮，强制刷新是为了使关闭生效，当使用了appearnce时，enabled效果会延迟
    self.navigationItem.rightBarButtonItem.enabled = NO;
    [self.navigationController.navigationBar layoutIfNeeded];

}

- (void)cancel
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)post
{

}


@end
